package io.lkt.modules.sys.dao;

import io.lkt.modules.sys.entity.BBeginnerArticleTypeEntity;
import io.lkt.modules.sys.entity.BPlatformBeginnerArticleTypeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 新手学堂文章类别所属公众号
 * 
 * @author xss
 * @email dustwas@163.com
 * @date 2021-12-15 15:16:02
 */
@Mapper
public interface BPlatformBeginnerArticleTypeDao extends BaseMapper<BPlatformBeginnerArticleTypeEntity> {

    List<String> getGzhCodeList(Integer articleTypeId);

    BPlatformBeginnerArticleTypeEntity getPlatformBeginnerArticleType(@Param("articleTypeId") Integer articleTypeId, @Param("gzhCode") String gzhCode);

    int deletePlatformBeginnerArticleType(@Param("articleTypeId") Integer articleTypeId, @Param("gzhCodeList") List<String> gzhCodeList);

    void saveObject(BPlatformBeginnerArticleTypeEntity bPlatformBeginnerArticleTypeEntity);

    List<BPlatformBeginnerArticleTypeEntity> queryList(Map<String, Object> params);

    int queryListTotal(Map<String, Object> params);

    BPlatformBeginnerArticleTypeEntity getInfo(@Param("gzhCode") String gzhCode, @Param("articleTypeId") Integer articleTypeId);

    List<BBeginnerArticleTypeEntity> getArticleTypeByGzhCode(String gzhCode);

    int updateByInfo(BPlatformBeginnerArticleTypeEntity bPlatformBeginnerArticleType);
}
